package com.ruoyi.subject.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.annotation.Excels;

import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.sys.domain.SysFiles;

/**
 * 课题进度对象 subject_progress
 * 
 * @author yepanpan
 * @date 2021-03-15
 */

@ApiModel("课题工作实体")
@Data
public class SubjectProgress extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增长主键ID */
    @ApiModelProperty("${comment}")
    private Long id;

    /** 课题ID */
    @ApiModelProperty("课题ID")
    private Long taskId;
    
    @Excels({
    	@Excel(name = "课题", targetAttr = "name")
    })
    private SubjectTask task;

    /** 进度类型 */
    @Excel(name = "进度类型", dictType = "progress_type")
    @ApiModelProperty("进度类型")
    private String type;

    /** 标题 */
    @Excel(name = "标题")
    @ApiModelProperty("标题")
    private String title;

    /** 内容 */
    @Excel(name = "内容")
    @ApiModelProperty("内容")
    private String content;

    /** 参与人 */
    @Excel(name = "参与人")
    @ApiModelProperty("参与人")
    private String users;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("开始时间")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("结束时间")
    private Date finishTime;

    /** 附件 */
    @ApiModelProperty("附件")
    private Long fileId;

    private SysFiles file;

}
